package vn.com.pavibook.dao;

import vn.com.pavibook.domain.model.PagingInfo;
import vn.com.pavibook.domain.model.Publisher;
import vn.com.pavibook.domain.model.SearchResult;

public interface PublisherDao {
	
	void addNewPublisher(Publisher publisher);
	SearchResult<Publisher> getPublisher(PagingInfo pagingInfo, String keyword);
	boolean isExistedUsername(String username);
	SearchResult<Publisher> getPersonalInfo(String username);
	SearchResult<Publisher> getPersonalInfoById(int id);
	void updatePublisherInfo(Publisher publisher);
	int getIdByUsername(String username);
	String getNameByUsername(String username);
	
	void deletePublisherById(int id);
}